//
//  FoodDetailListTableViewCell.m
//  ArtOfLiving
//
//  Created by xalo on 16/5/1.
//  Copyright © 2016年 刘虎. All rights reserved.
//

#import "FoodDetailListTableViewCell.h"
#import "FoodMainModel.h"
#import "FoodMakeStepViewController.h"
@interface FoodDetailListTableViewCell ()

@property (strong, nonatomic) IBOutlet UILabel *foodTitleLabel; //食物名称
@property (strong, nonatomic) IBOutlet UILabel *foodEffectLabel;//食物共特点
@property (strong, nonatomic) IBOutlet UILabel *durationLabel;  //烹饪时间
@property (strong, nonatomic) IBOutlet UILabel *collectionLabel;    //收藏时间
@property (strong, nonatomic) IBOutlet UILabel *commentLabel;   //评论数
@property (strong, nonatomic) IBOutlet UIImageView *authorImageView;    //作者图片
@property (strong, nonatomic) IBOutlet UILabel *authorNameLabel;        //作者名称
@property (strong, nonatomic) IBOutlet UILabel *introduceLabel;     //食物介绍
- (IBAction)checkStepBtn:(id)sender;

@end

@implementation FoodDetailListTableViewCell

//- (void)setCellWithModel:(id)model {
//    
//    FoodMainModel *foodMainModel = model;
//    self.foodTitleLabel.text = foodMainModel.title;
//    self.foodEffectLabel.text = [foodMainModel.effectMArr[0] name];
//    self.durationLabel.text = [NSString stringWithFormat:@"烹饪时间：%ld  热量：%lf",foodMainModel.duration,foodMainModel.calories];
//    self.collectionLabel.text = [NSString stringWithFormat:@"%ld",foodMainModel.collection_count];
//    self.commentLabel.text = [NSString stringWithFormat:@"%ld",foodMainModel.comment_count];
//    SDWebImageOptions options = SDWebImageDownloaderLowPriority | SDWebImageRetryFailed;
////    [self.authorImageView sd_setImageWithURL:[NSURL URLWithString:foodMainModel.authorModel.avatar] placeholderImage:[UIImage imageNamed:@"foodPlaceholder.png"] options:options];
////    self.authorNameLabel.text = foodMainModel.authorModel.nick_name;
//    self.introduceLabel.text = foodMainModel.introduce;
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (IBAction)checkStepBtn:(id)sender {
    
//    FoodMakeStepViewController *foodMakeStepVC = [[FoodMakeStepViewController alloc] init];
}
@end
